<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>up6单文件上传样式演示页面</title>
    <link rel="stylesheet" type="text/css" href="res/up6/up6.css" />
    <script type="text/javascript" src="res/jquery-1.4.min.js"></script>
    <script type="text/javascript" src="res/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/up6/up6.file.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/up6/up6.folder.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/up6/up6.edge.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/up6/up6.app.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/up6/up6-single.js" charset="utf-8"></script>
    <script type="text/javascript" src="res/demo.js" charset="utf-8"></script>
    <script language="javascript" type="text/javascript">
        //根路径：http://localhost:8888/down2/db/
        var api = [
            window.location.protocol,
            "//",
            window.location.host,
            "/up6/api/up6/"
        ].join("");

        var upmgr = new HttpUploaderMgr({
            Config: {
                License2: "",//授权码
                FileFilter: "*",//限制上传的文件类型
                //赋加字段，业务逻辑字段
                Fields: { uid: "0" },
                //后端接口-文件夹
                "UrlFdCreate": api + "fd_create.php",
                "UrlFdComplete": api + "fd_complete.php",
                "UrlFdDel": api + "fd_del.php",
                //后端接口-文件
                "UrlCreate": api + "f_create.php",
                "UrlPost": api + "f_post.php",
                "UrlProcess": api + "f_process.php",
                "UrlComplete": api + "f_complete.php",
                "UrlList": api + "f_list.php",
                "UrlDel": api + "f_del.php"
            },//事件
            event: {
                md5Complete: function (obj, md5) {
                    //文件md5计算完毕
                },
                fileComplete: function (obj) {
                    //文件上传完毕
                },
                queueComplete: function () {
                    //队列中所有文件上传完毕
                    $(document.body).append("队列完成<br/>");
                },
                addFdError: function (jv) {
                    //添加文件夹错误
                    alert("本地路径不存在：" + jv.path);
                },
                scanComplete: function (obj) {
                    //目录扫描完毕
                }
            },
            ui: {
                render: "upPnl"
            }
        });
    </script>
    <style type="text/css">
        p { font: 9pt 宋体; }
        h5{margin:0;font-family: 宋体;}
        ul{list-style-type: none;font: 9pt 宋体;}
        ul li{display: inline;margin:0 5px 0 0;padding:0 0 5px 0;font: 9pt 宋体;}
    </style>
</head>
<body>
    <h5>单文件上传演示</h5>
    <div id="demos"></div>
	<!--ui-->
    <div id="upPnl"></div>
</body>
</html>